package com.project.biz;

import com.baomidou.mybatisplus.extension.service.IService;
import com.framework.core.result.BasePage;
import com.project.entity.CmsBanner;
import com.project.entity.CmsCapitalFlow;
import com.project.pojo.model.QueryBannerModel;

/**
 * @description: banner管理业务层接口类
 * @author: longer
 * @create: 2020-12-18 17:51
 **/
public interface CmsBannerBiz extends IService<CmsBanner> {

    /**
     * 按条件查询banner
     * @param queryBannerModel
     * @return
     */
    BasePage<CmsBanner> getBannerList(QueryBannerModel queryBannerModel);

    /**
     * 增加banner
     * @param banner
     * @return
     */
    Integer addBanner(CmsBanner banner);

    /**
     * 删除banner
     * @param bannerId
     * @return
     */
    Integer deleteBanner(Long bannerId);

    /**
     * 修改banner
     * @param banner
     * @return
     */
    Integer updateBanner(CmsBanner banner);
}
